/**
 * @Copyright:Copyright (c) 1992 - 2016
 * @Company: TengTong
 */

package com.tengtong.duang.db.base;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * JDBC 查询回调
 * 
 * @author Jai
 *
 */
@FunctionalInterface
public interface QueryHandler<T> {

	/**
	 * 查询之后将结果传入
	 * 
	 * @param rs
	 * @throws SQLException
	 */
	public T processRow(ResultSet rs) throws SQLException;
}
